package aygx.integration.repository;

import aygx.integration.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 暗影孤星
 * @date 2020/10/25 17:32
 * @explanation
 */
@Mapper
@Repository
public interface UserRepository {
    @Select("select * from user")
    List<User> findAll();

    User findById(Integer id);

}
